package cyb.test;

import cyb.CoLocation;
import org.openjdk.jol.info.ClassLayout;
import org.openjdk.jol.info.GraphLayout;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import static cyb.SPColocation.spNeighborPath;

public class test4 {
    public static void add(Map<String, List<?>> t) {
        System.out.println(t.size());
    }

    public static void main(String[] args) throws IOException {
//        boolean[] bits = new boolean[1024];
//        System.out.println(ClassLayout.parseInstance(bits).toPrintable());
//        BitSet bitSet = new BitSet(1024);
//        System.out.println(GraphLayout.parseInstance(bitSet).toPrintable());

        Random rd = new Random();


//        double a = Math.sqrt((1-3)*(13)+(p1.y-p2.y)*(p1.y-p2.y));
    }

    public static String order(String pattern) {
        String patternOrder = Stream.of(pattern.split(",")).sorted(new Comparator<String>() {
            @Override
            public int compare(String o1, String o2) {
                if (o1.equals("") || o2.equals("")) {
                    System.out.println(1);
                }
                return Integer.valueOf(o1).compareTo(Integer.valueOf(o2));
            }
        }).collect(Collectors.joining(","));
        return patternOrder;
    }
}
